home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / CODE / Chap03 / MouseCap / MouseCap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-05  |  722 b   |  34 lines

  1. //***********************************************************************
  2. //
  3. //  MouseCap.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CMyApp : public CWinApp
  8. {
  9. public:
  10.     virtual BOOL InitInstance ();
  11. };
  12.  
  13. class CMainWindow : public CFrameWnd
  14. {
  15. private:
  16.     BOOL m_bTracking;
  17.     BOOL m_bCaptureEnabled;
  18.     CPoint m_ptFrom;
  19.     CPoint m_ptTo;
  20.  
  21.     void InvertLine (CDC*, CPoint, CPoint);
  22.  
  23. public:
  24.     CMainWindow ();
  25.  
  26. protected:
  27.     afx_msg void OnLButtonDown (UINT, CPoint);
  28.     afx_msg void OnLButtonUp (UINT, CPoint);
  29.     afx_msg void OnMouseMove (UINT, CPoint);
  30.     afx_msg void OnNcLButtonDown (UINT, CPoint);
  31.  
  32.     DECLARE_MESSAGE_MAP ()
  33. };
  34.